<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %> 
<html> 
  <body> 
    <p>Login Success!!!</p> 
     
    <p>Current User: 
      <c:out value="${logininfo.username}"/><br> 
    </p> 
 
    <p>Your current messages:</p> 
    <c:forEach items="${messages}" var="item" begin="0" end="9" step="1" varStatus="var"> 
      <c:if test="${var.index % 2 == 0}"> 
        * 
      </c:if>   
      ${item}<br> 
    </c:forEach>     
  </body> 
</html> 